package com.bricker.laboratorymanagement.business.controller;

import com.bricker.laboratorymanagement.business.entity.SysTie;
import com.bricker.laboratorymanagement.business.service.SysTieService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sysTie")
public class SysTieController {

    @Autowired
    private SysTieService sysTieService;

    /**
     * 获取所有系别
     */
    @GetMapping
    public List<SysTie> getAllTies(){
        return sysTieService.getAllTies();
    }

}
